import pytest

from python_code.calc import Calculator


@pytest.fixture(scope='class')
def get_calc():
    print('开始计算')
    # 实例化计算器类
    calc = Calculator()
    yield calc
    print('结束计算')